package com.expdatacloud.mapper;

import com.expdatacloud.entity.IqcDetection;
import com.expdatacloud.entity.IqcDetectionHistory;
import com.expdatacloud.entity.ModelsMgt;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * IQC检测履历表 Mapper 接口
 * </p>
 *
 * @author jie
 * @since 2019-11-20
 */
public interface IqcDetectionHistoryMapper  {
    List<IqcDetectionHistory> list(IqcDetectionHistory iqcDetectionHistory);

    IqcDetectionHistory getBySkuAndExtreceiptform(@Param("sku") String sku,@Param("extreceiptform") String extreceiptform);

    int insert(IqcDetectionHistory iqcDetectionHistory);
    /**
     * 在履历中查询货主
     */
    List<String> getShipperList();
    /**
     * 在履历中查询机型
     */
    List<ModelsMgt> getModelKeyList(@Param("shipper") String shipper);

    /**
     * 获取机型
     */
    List<IqcDetectionHistory> getModelKeyList2(@Param("shipper") String shipper,@Param("sku") String sku);

    /**
     *  修改履历表检验结果、判定方式
     */
    Integer updateHistory(IqcDetection iqcDetection);


}
